package com.lou.springboot.controller;

import com.lou.springboot.service.TransactionTestService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class TransactionTestController {
    @Resource
    private TransactionTestService transactionTestService;

    @GetMapping("/transactionTest")
    public String transactionTest(){
        transactionTestService.test1();
        transactionTestService.test2();
        return "请求成功";
    }
}
